package com.example.keepserver.model;

import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
import javax.persistence.Column;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "activities")
public class Activity {
    
    @Id
    private String activityId;
    
    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;
    
    private String type;
    private String title;
    
    @Column(columnDefinition = "TEXT")
    private String description;
    
    private Float distance;
    private Integer duration;
    private Float calorie;
    private LocalDateTime startTime;
    private Integer likesCount;
    private Integer commentsCount;
    
    @Column(columnDefinition = "MEDIUMTEXT")
    private String routeData;
    
    private LocalDateTime createdAt;
} 